function log(val) {
    console.log(val);
}

var vm = new Vue({
    el: "#app",

    data: {
        items: [],
        itemsLen: '',
    },

    filters: {},

    computed: {},

    mounted: function () {
        this.showMenu();
    },

    methods: {
        showMenu: function () {
            this.$http.get("/MenuAdd",{
                id: $("#id").val(),
            }).then(function (data) {
                this.items = data.data.data;
                console.log(data);
                this.itemsLen = data.data.data.length;
            })
        }

    }
});